solve the exponential equation